﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace LAN {
    class Program {
        static void Main(string[] args) {

            ProcessStartInfo pi = new ProcessStartInfo("\\pradnya\net","view");
            pi.RedirectStandardOutput = true;
            pi.UseShellExecute = false;
            Process p = Process.Start(pi);
            String output = "";

            while ((output = p.StandardOutput.ReadLine()) != null) {
                
                //Console.Write("aa"+output.Split('\n').Length);
                Console.Write(output);
                Console.Write("--");
            }
            
            Console.Read();
        }
    }
}
